package cn.shadow.game.chess.CHnchess.board;


import cn.shadow.game.chess.CHnchess.chessman.Chess;
import com.google.protobuf.MessageOrBuilder;

/**
 * 棋盘上每一个点
 */
public interface Position {
    /**
     * @return 是否在主将的局域
     */
    boolean isInCenter();

    /**
     * 是否在下方
     *
     * @return
     */
    boolean isDown();

    int getKey();

    int getRow();

    int getCol();

    Chess getChess();

    void setChess(Chess chess);

    boolean isOverRanged();

    Position copy(Chess chess, Board board);

    MessageOrBuilder chessNodeMsg();

    String show();
}
